package edu.mit.media.fv.blocks
{
	import edu.mit.media.fv.components.*;
	import edu.mit.media.fv.events.*;
	import edu.mit.media.fv.fluidspace.*;
	import edu.mit.media.fv.icons.*;
	import edu.mit.media.fv.palettes.*;
	import edu.mit.media.fv.view.*;
	
	import flash.display.DisplayObject;
	import flash.events.MouseEvent;
	import flash.text.*;
	public class CellBlock extends Block
	{
		public function CellBlock(model:Model, controller:FluidSpace, icon:DisplayObject = null, name:String = "", color:uint = 0xFFFFFF)
		{
			super(model, controller);
			if (icon != null){
				this.icon = icon;
			}
			this.label = name;
			this.color = color;
			
			this.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
			this.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
		}
		public override function draw():void{
			this.graphics.beginFill(this.color);
			this.graphics.drawRect(0, 0, this.diameter, 50);
			this.graphics.endFill();
		}
		
	}
}